package cn.accp.carFactory.base;

/**
 * 发动机抽象类
 * 
 * @author Jiangqs
 * 
 */
public abstract class Engine {
	// 品牌
	private String brand;
	// 型号
	private String model;
	// 功率
	private double power;

	public Engine(String brand, String model, double power) {
		super();
		this.brand = brand;
		this.model = model;
		this.power = power;
	}

	public String getBrand() {
		return brand;
	}

	public void setBrand(String brand) {
		this.brand = brand;
	}

	public String getModel() {
		return model;
	}

	public void setModel(String model) {
		this.model = model;
	}

	public double getPower() {
		return power;
	}

	public void setPower(double power) {
		this.power = power;
	}

	@Override
	public String toString() {
		return this.brand + "," + this.model + "," + this.power + ",";
	}

}
